<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: sunk
  Date: 15-11-8
  Time: 下午2:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>短租</title>
    <script type="text/javascript">
        function loadInformation(houseGuid) {
            location.href = "/rent/details/" + houseGuid;
        }
    </script>
</head>
<body>
<div>
    <table>
        <thead>
        <th>名字</th>
        <th>价格</th>
        <th>人数</th>
        <th>天数</th>
        <th>信息</th>
        <th>图片</th>
        <th>头像</th>
        </thead>
        <tbody>
        <c:forEach items="${rentDTOs}" var="list">
            <tr>
                <td>${list.houseName}</td>
                <td>${list.price}</td>
                <td>${list.personNum}</td>
                <td>${list.days}</td>
                <td>${list.information}</td>
                <td><img src="/public/image/${list.imageGuid}" style="width: 20px;height: 20px"
                         onclick="loadInformation('${list.guid}')"/></td>
                <td><img src="/public/image/${list.ownerPhotoGuid}" style="width: 20px;height: 20px"/></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>